package com.lankystar.logistucs.spring.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lankystar.logistucs.spring.service.DeleteService;

@Controller
@RequestMapping(value="/delete")
public class DeleteController {

	@Autowired
	private DeleteService deleteService;
	
	@RequestMapping(value="deleteOao.do")
	@ResponseBody
	public Map<String, Object> deleteOao(int oneOrderId){
		Map<String, Object> map = new HashMap<>();
		int result = deleteService.deleteOaos(oneOrderId);
		map.put("data", result);
		map.put("msg", "删除一级订单与状态的关系表，除key=30");
		return map;
	}
}
